﻿
namespace AzukiMap.DataSource.Vector
{
    public abstract class VectorDataSource
    {
        protected DataTypes _dataType;
        protected string _name;
        protected int _srid;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public DataTypes DataType
        {
            get { return _dataType; }
            set { _dataType = value; }
        }

        public int Srid
        {
            get { return _srid; }
            set { _srid = value; }
        }


        public bool Compare(VectorDataSource other)
        {
            if (_name == other._name &&
                _dataType == other._dataType &&
                _srid == other._srid)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

    }
}
